import pygame
from pygame.locals import *
from gordon.objects import State
from gordon.core import StateMachine
from random import randint, seed
from Field import Field, Player
from Arena import Arena

seed()
screen_size = (450,300)
pygame.init()
screen = pygame.display.set_mode(screen_size)
machine = StateMachine(_debug=True)
machine.push(Arena(screen))
#machine.push(EditLayer())
while 1:
	current = machine.top()
	if current.run:
		current.update()
		current.draw()
	else:
		machine.pop()
